<template>
	<div class="PaymentDetails">
		<div class="PaymentDetails-item">
			<div class="pi-left">租金</div>
			<div class="pi-right">￥{{orderinfodata.originalPrices}}</div>
		</div>
		<div class="PaymentDetails-item">
			<div class="pi-left">房东优惠</div>
			<div class="pi-right">-￥{{orderinfodata.discountPrices}}</div>
		</div>
		<div class="PaymentDetails-item">
			<div class="pi-left">平台优惠</div>
			<div class="pi-right">-￥{{orderinfodata.couponPrices}}</div>
		</div>
		<div class="PaymentDetails-item">
			<div class="pi-left">在线押金</div>
			<div class="pi-right">+￥{{orderinfodata.cashPledge}}</div>
		</div>
		<div class="PaymentDetails-item">
			<div class="pi-left">清洁费</div>
			<div class="pi-right" v-if="orderinfodata.cashFree==1">-￥<s>{{orderinfodata.cleanFee}}</s></div>
			<div class="pi-right" v-else>-￥<s>{{orderinfodata.cleanFee}}</s></div>
		</div>

		<div class="PaymentDetails-ALLprice">
			支付总额：￥{{orderinfodata.payPrices}}
		</div>
	</div>
</template>

<script>
	import { mapGetters, mapActions, mapState } from 'vuex'
	export default {
		name: "PaymentDetails",
		data() {
			return {

			}
		},
		computed: {
			...mapGetters([
				'orderinfodata'
			])
		},

		mounted() {
		}
	}
</script>

<style scoped>
	.PaymentDetails {
		width: 100%;
		color: #282828;
	}
	
	.PaymentDetails-item {
		width: 100%;
		height: .95rem;
		background: #fff;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 0 .24rem;
		box-sizing: border-box;
		border-bottom: 1px solid #eeecec;
	}
	
	.pi-left {
		font-size: .35rem;
	}
	
	.pi-right {
		font-size: .32rem;
	}
	
	.PaymentDetails-ALLprice {
		width: 100%;
		font-size: .49rem;
		text-align: center;
		background: #fff;
		line-height: 1.67rem;
	}
</style>